<?php
/**
 * Created by PhpStorm.
 * User: 3viso
 * Date: 2016/1/13
 * Time: 17:19
 */
namespace Ext;
final class Sms
{
    //http://sms.inolink.com/
    const SMS_USER = '';
    const SMS_PWD = '';
    const SMS_HOST ='';
    const SMS_LOGS = 'smsLog.log';
    public static function send($mobile,$content)
    {
        $content_gb=iconv("utf-8","gb2312//IGNORE",$content);
        $url="http://inolink.com/ws/BatchSend2.aspx?CorpID=".self::SMS_USER."&Pwd=".self::SMS_PWD."&Mobile=".$mobile."&Content=".urlencode($content_gb)."&SendTime=&Cell=";
        $output = file_get_contents($url);
        if($output>0){
            return $output;
        }else{
            return $output;
        }


    }
}